package com.dong.auth.module.oauth2.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.sql.Blob;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhao dong chao
 * @since 2021-09-03 53:12:32
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("oauth_client_token")
public class OauthClientToken implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("token_id")
    private String tokenId;

    private Blob token;

    @TableId(value = "authentication_id", type = IdType.INPUT)
    private String authenticationId;

    @TableField("user_name")
    private String userName;

    @TableField("client_id")
    private String clientId;

    @TableField("create_time")
    private Date createTime;
}
